package com.etung.iot.demo.boxConfig;

import com.fasterxml.jackson.databind.PropertyNamingStrategy;
import com.fasterxml.jackson.databind.annotation.JsonNaming;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.List;

@Data
@Accessors(chain = true)
@JsonNaming(PropertyNamingStrategy.SnakeCaseStrategy.class)
@ApiModel(value = "通讯接口配置")
public class Port {
    @ApiModelProperty(required = true,notes = "接口ID")
    private Integer portId;
    @ApiModelProperty(required = true,notes = "接口类型")
    private String type;
    @ApiModelProperty(required = true,notes = "接口名称")
    private String portName;
    @ApiModelProperty(notes = "串口通讯最大位组包寄存器个数")
    private Integer bitMax;
    @ApiModelProperty(notes = "串口通讯最大字组包存器个数")
    private Integer wordMax;
    @ApiModelProperty(notes = "串口通讯超时时间")
    private Integer timeout;
    @ApiModelProperty(notes = "串口通讯尝试恢复间隔")
    private Integer recoveryInterval;
    @ApiModelProperty(notes = "串口通讯间隔时间")
    private Integer Interval;
    @ApiModelProperty(notes = "串口通讯失败重试次数")
    private Integer retryTimes;
    @ApiModelProperty(notes = "LAN口IP地址")
    private String ip;
    @ApiModelProperty(notes = "LAN口子网掩码")
    private String mask;
    @ApiModelProperty(notes = "LAN口子网掩码")
    private String gateway;
    @ApiModelProperty(notes = "LAN口DNS")
    private String dns;
    @ApiModelProperty(notes = "LAN口MAC地址")
    private String mac;
    @ApiModelProperty(notes = "串口设备品牌")
    private String brand;
    @ApiModelProperty(notes = "串口设备型号")
    private String model;
    @ApiModelProperty(notes = "波特率")
    private String baud;
    @ApiModelProperty(notes = "校验")
    private String parity;
    @ApiModelProperty(notes = "数据位")
    private String dataBit;
    @ApiModelProperty(notes = "停止位")
    private String stopBit;
    private List<Device> deviceList;
}
